<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::group(['prefix' => 'v5'], function () {
    Route::get('articles', 'IndexController@index');
    // 用户注册
    Route::post('users', 'UserController@store');
    // 用户登录
    post('oauth/access_token', 'OAuthController@postAccessToken');
});
